const network = require("./modules/network.js");
const {common} = require("./modules/common.js");
const {auth} = require("./modules/auth.js");
const {login, isLogin} = require("./modules/auth-login.js");
const api = require("./pages/user/api.js");





//app.js
App({
  common,
  network,
  auth,
  onLaunch: function () {
    // isLogin(login);
    // wx.login({
    //   success: res => {
    //     console.log(res, 333);
    //     if (res.code) {
    //       //
    //     }
    //   }
    // });
  },
  firstLoadOption: {
    isLoginEnd: false,
    loginComplete: function () {
      debugger;
      this.isLoginEnd = true;
    },
    cb: function () {},
    execute: function (fn) {
      this.cb = function () {
        debugger;
        if (this.isLoginEnd) {
          fn();
        }
      }
      debugger;
    }
  }
});